package com.fosss.band.mapper;

import com.fosss.band.entity.Album;
import com.fosss.band.entity.vo.AlbumQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: fosss
 * Date: 2023/12/27
 * Time: 20:32
 * Description:
 */
@Mapper
public interface AlbumMapper {
    /**
     * 分页条件查询
     */
    List<Album> pageQuery(@Param("albumQueryVo") AlbumQueryVo albumQueryVo);

    /**
     * 删除专辑
     */
    void deleteById(@Param("id") Integer id);

    /**
     * 添加专辑
     */
    void add(@Param("album") Album album);

    /**
     * 根据id查询专辑
     */
    Album getById(@Param("id") Integer id);

    /**
     * 更新专辑
     */
    void updateById(@Param("album") Album album);

    /**
     * 批量查询
     */
    List<Album> selectAlbums(@Param("ids") List<Integer> ids);
}
